<%--
    Document   : Employee
    Created on : May 9, 2012, 9:28:43 AM
    Author     : Nguyen Hung
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<f:subview id="conf425475">
    <html>
        <head>
            <link rel="stylesheet" type="text/css" href="../css/thickbox.css"/>
            <script type="text/javascript" language="javascript" src="../scripts/jQuery/thickbox.js"></script>
            <script type="text/javascript" language="javascript">
                var open_cur = 0;
                $j = jQuery.noConflict();
                $j(document).ready(function(){                       
                    $j('.itemList').live("click",function(){  
                        showPleaseWait();
                        action = $j(this).attr('lang');               
                        PN00P = $j(this).parent().attr('lang');
                        pn100 = $j(this).parent().prev().attr('lang');
                        $j.post("actionrelations.jsp"+action,function(data){
                            if(data!=0){
                                hidePleaseWait();
                                lDateTime1 = new Date().getTime();        
                                window.location="supplier.jsp?tab=itemcontent"+pn100+"&linkEmp="+lDateTime1;
                            }else{data==0}{
                                
                            }
                        });
                        
                    });
                    $j('.itemList0').live("click",function(){                         
                        action = $j(this).attr('lang');           
                        PN00P = $j(this).parent().attr('lang');
                        $j.post("actionrelations.jsp"+action,function(data){
                            if(data!=0){
                                lDateTime1 = new Date().getTime();  
                                window.location= "supplier.jsp?action=linkCus&pnPN100="+PN00P+"&tab=tab9"+PN00P+"&flag="+lDateTime1+"&#"+PN00P;
                            }else{data==0}{             
                            }
                        });       
                    });
                    $j('.listDD').css("display","none");
                    $j(document).live("click",function() {
                        $j('.listDD').hide();
                    });
                    $j('.listDD').live('click',function(e) {
                        e.stopPropagation();
                    });
                    $j( "#toggle" ).hide();
                    initThickBox('.thickbox');
                    $j('.del').live("click",function(){  
                        $j(this).prev().parent().css("display","none");                     
                        $j(this).prev().parent().prev().show();
                        $j(this).prev().parent().prev().prev().show();  
                    });
                    $j('.showCombo').live("click",function(){  
                        $j(this).prev().hide();
                        $j(this).hide();
                        $j(this).next().css("display","block");
                        
                    });
                    $j('.combo').live('click',function(){
                        $j('.listDD').hide();
                        if($j(this).next().hasClass('active')){
                        
                            $j('.listDD').removeClass('active');
                        }else{

                            $j('.listDD').removeClass('active');
                            $j(this).next().addClass('active');
                            $j(this).next().show();
                            $j(this).next().children().next().show();
                            return false;
                        }
                    });
                    $j('.check_select').live('click',function(){
                        var lang= $j(this).attr("lang");
                        fk100 = $j(this).parent().attr("lang");
                        var boool;
                        //alert(lang)               
                        if( $j(this).is(":checked"))
                        {
                            boool = true;
                        }
                        else
                        {
                            boool = false;
                        }
                            
                        $j.post("listEmployee.jsp?action=addnotcheckAll&fk100CTT="+fk100+"&pn100="+lang+"&boolNV="+boool+"&typecheck=NV",function(data){
                            
                        });
                    });
                
                    $j(".checkAll").live("click",function(){
                        //alert('check all');
                        flag = $j('.checkAll').is(':checked');
                        fk100 = $j(this).parent().parent().prev().parent().parent().next().children().children().next().children().attr('lang');
                        //    alert(fk100);
                        $j(".check_select").each(function(){
                            $j('.check_select')  .attr('checked', flag);
                        });
                        
                        var boool;
                        if( $j(this).is(":checked"))
                        {
                            boool = true;
                        }
                        else
                        {
                            boool = false;
                        }
                        $j.post("listEmployee.jsp?action=addcheckAll&fk100CTT="+fk100+"&boolNV="+boool+"&typecheck=NV",function(data){
                            
                        });
                        //                    $j.post("workChargeCM.jsp?action=addAllCusp100&boool="+boool+"&kh=CM",function(data){
                        //                            
                        //                    });

                    });
                    
                    
                    $j(".sendSMS1").live("click",function(data){
                    
                        $j( "#togglesms" ).show();
                        $j( "#togglesms" ).animate({height:'auto',opacity:'0.9'},"slow");
                        $j( "#togglesms" ).animate({width:'39%',opacity:'0.9'},"slow");
                        lang = $j(this).attr("lang");
                        $j.post("loaddatasmsTour.jsp?"+lang,function(data){
                            if(data!=null){
                                $j( "#togglesms" ).html(data);
                            }
                        });
                    });
                    $j(".checkAllDD").live("click",function(){
                        //alert('check all');
                        flag = $j('.checkAllDD').is(':checked');
                        fk100 = $j(this).parent().parent().prev().parent().parent().next().children().children().next().children().attr('lang');
                        //    alert(fk100);
                        $j(".check_selectDD").each(function(){
                            $j('.check_selectDD')  .attr('checked', flag);
                        });
                        
                        var boool;
                        if( $j(this).is(":checked"))
                        {
                            boool = true;
                        }
                        else
                        {
                            boool = false;
                        }
                        $j.post("listPersion.jsp?action=addcheckAll&fk100CTT="+fk100+"&boolNV="+boool+"&typecheck=DD",function(data){
                            
                        });

                    });

                    $j('.check_selectDD').live('click',function(){
                        var lang= $j(this).attr("lang");
                        fk100 = $j(this).parent().attr("lang");
                        var boool;
                        //alert(lang)               
                        if( $j(this).is(":checked"))
                        {
                            boool = true;
                        }
                        else
                        {
                            boool = false;
                        }
                            
                        $j.post("listPersion.jsp?action=addnotcheckAll&fk100CTT="+fk100+"&pn100="+lang+"&boolNV="+boool+"&typecheck=DD",function(data){
                            
                        });
                    });
                });
            </script>
            <style>
                .showCombo{
                    float: right;
                    height: 15px;
                    margin-right: 10px;
                    width: 10px;

                }

                .showCombo img{
                    width: 10px !important; 
                    height: 10px !important;
                    float:left;
                    margin-left: 5px;
                    margin-top: 3px;
                    cursor: pointer;
                }
                .combo{
                    height: 22px;
                    width: 104px;
                    float: left;
                }

                .combo img{
                    height: 25px !important;
                    margin-top: -1px;
                    width: 20px !important;
                }
                .listDD{
                    background-color: #FFFFFF;
                    border: 1px solid gray;
                    margin-left: 9px;
                    position: absolute;
                    width: 91px;
                    z-index: 999;
                }
                .itemList{
                    cursor: pointer;
                    float: left;
                    width:91px;
                }

                .itemList0{
                    cursor: pointer;
                    float: left;
                    width:91px;
                }
                .itemList:hover{
                    background-color: #1491E5;
                    color: #FFFFFF;
                }
                .itemList0:hover{
                    background-color: #1491E5;
                    color: #FFFFFF;
                }
                .del{
                    cursor: pointer;
                    float: left;
                }
                .del img{
                    width: 10px;
                    height: 10px;
                }
                .DD{
                    margin-left: 81px;
                    width: 55px;

                }
                .rich-tab-active{
                    cursor: pointer;
                    height: 20px;
                    border-color:#303C48;
                    color: #FFFFFF !important; 
                    background:url("../images/bg_button1.gif") repeat-x scroll 0 0 transparent !important;
                }
                .rich-tab-inactive{
                    height: 20px;
                    cursor: pointer;
                }
                .democolumnitem{
                    background: none repeat scroll 0 0 #456565;
                    color: #FFFFFF;
                    font-size: 11px;
                    font-weight: bold;
                    height: 35px;
                    text-align: center;
                }
                .democolumn2item {
                    background: none repeat scroll 0 0 #FFFFFF;
                    color: #000000;
                    font-size: 11px;
                    padding: 3px;
                }
                .rich-table-subheadercell{
                    background: none repeat scroll 0 0 #456565;
                    border-right: none !important;
                }
                .rich-table-cell{
                    border-right: none !important;
                    border-bottom: none !important;
                }
                .odditem{
                    background: #D0E5E5;
                }

            </style>
        </head>


        <body>

            <div id="togglesms">

            </div>

            <a4j:form>
                <a4j:status onstart="#{rich:component('statPane')}.show()" onstop="#{rich:component('statPane')}.hide()" />
                <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
                <h:outputText value="<div class='permission' lang='#{loginSession.right.MNU_DKH_VIE}'></div>" escape="false"/>
                <div id="content" style="border: 1px solid #4884B5;width: 99.8%;padding: 0 1% ;">   
                    <div id="content_detail" class="content_detail">
                        <div class="content_right" style="width:100%;min-height:200px;">
                            <div class="list_content" id="listGroup" style="margin-top:0px;">

                                <rich:tabPanel selectedTab="#{k100supplierController.tabString}" switchType="ajax">

                                    <rich:tab name="TABLL" action="#{k100supplierController.chooseTabll}" label="THÔNG TIN LIÊN LẠC">
                                        <h:panelGroup id="reload3" style="float:left;width:100%;">
                                            <div style="width: 100% !important;float:left;">
                                                <div style="float:left;width:100%;background-color: #4884B5;">
                                                    <div style="float: left;border: 1px solid #666666;width: 9%;background-color: #506579;color: #fff;">
                                                        <h:outputText style="float:left;line-height:25px;margin-left:7%;font-size:10px" value="#{locale.contact_info}"/>
                                                    </div>
                                                    <div style="float: left;border: 1px solid #666666;width: 2%;background-color: #506579;color: #fff;" >
                                                        <h:outputLink value="editContact.jsp?action=add&fn100A=#{k950Controller.FK100}&page=supplier.jsp&table=K100&height=340px&width=568px" styleClass="fancybox">
                                                            <h:outputText style="float:left;line-height:25px;margin-left:21%;font-size:25px;color:white;" value="+"/>
                                                        </h:outputLink>
                                                    </div>
                                                </div>  
                                                <div style="float:left;width: 100%;">
                                                    <rich:dataTable value="#{k950Controller.list}" rowClasses="white,odditem" var="item" rows="20" rowKeyVar="row" id="table" >

                                                        <rich:column width="3%">
                                                            <f:facet name="header">
                                                                <h:outputText value="STT" />
                                                            </f:facet>
                                                            <div style="width:100%;text-align: center;">
                                                                <h:outputText value="#{row+1}" id="make" />
                                                            </div>
                                                        </rich:column>
                                                        <rich:column width="10%">
                                                            <f:facet name="header">
                                                                <h:outputText value="Điện thoại" />
                                                            </f:facet>
                                                            <div style="width:100%;text-align: center;">
                                                                <h:outputText  value="#{item.TEL1}"/>
                                                            </div>
                                                        </rich:column>
                                                        <rich:column width="10%">
                                                            <f:facet name="header">
                                                                <h:outputText value="Fax" />
                                                            </f:facet>
                                                            <div style="width:100%;text-align: center;">
                                                                <h:outputText  value="#{item.FAX1}"/>
                                                                <h:outputText styleClass="mag_nums" rendered="#{ item.FAX2 !=''&& item.FAX2 !=null}" value="-"/>
                                                                <h:outputText  value="#{item.FAX2}"/>
                                                                <h:outputText styleClass="mag_nums" rendered="#{item.FAX3 !=''&& item.FAX3 !=null}" value="-"/>
                                                                <h:outputText  value="#{item.FAX3}"/> 
                                                            </div>
                                                        </rich:column>
                                                        <rich:column width="20%">
                                                            <f:facet name="header">
                                                                <h:outputText value="Email" />
                                                            </f:facet>
                                                            <div style="width:100%;text-align: left;">
                                                                <h:outputText value="#{item.EML1}"/>

                                                            </div>
                                                        </rich:column>
                                                        <rich:column width="17%">
                                                            <f:facet name="header">
                                                                <h:outputText value="Yahoo" />
                                                            </f:facet>
                                                            <div style="width:100%;text-align: left;">
                                                                <h:outputText value="#{item.EML3}"/>
                                                            </div>

                                                        </rich:column>
                                                        <rich:column width="15%">
                                                            <f:facet name="header">
                                                                <h:outputText value="Skype" />
                                                            </f:facet>
                                                            <div style="width:100%;text-align: left;">
                                                                <h:outputText value="#{item.EML2}"/>
                                                            </div>
                                                        </rich:column>
                                                        <rich:column width="20%">
                                                            <f:facet name="header">
                                                                <h:outputText value="Địa chỉ" />
                                                            </f:facet>
                                                            <div style="width:100%;text-align: left;">
                                                                <h:outputText value="#{item.str1}, #{item.WARD}, #{item.DIST}, #{item.CITY}"/>
                                                            </div>
                                                        </rich:column>

                                                        <rich:column width="5%">
                                                            <f:facet name="header">
                                                                <h:outputText value="Actions" />   
                                                            </f:facet>
                                                            <div style="width:100%;text-align: center;">



                                                                <h:outputLink value="editContact.jsp?action=edit&fn100E=#{item.fk100}&pn950E=#{item.pk950}&table=K100&page=supplier.jsp&height=350px&width=550px" styleClass="fancybox card_edit" id="fancybox"  >
                                                                    <img src="../images/edit.png" alt="edit" title="edit" />
                                                                </h:outputLink>
                                                                <h:outputLink value="delete.jsp?id=#{item.pk950}&pn100C=#{item.fk100}&flag=K950&page=supplier.jsp&tab=itemcontent&height=150px&width=300px" styleClass="fancybox card_delete" >
                                                                    <img src="../images/delete_1.png" alt="delete" title="delete" />
                                                                </h:outputLink>
                                                            </div>
                                                        </rich:column>

                                                    </rich:dataTable>
                                                </div>
                                            </div>
                                        </h:panelGroup>
                                    </rich:tab>
                                    <rich:tab name="TABCM" action="#{k100supplierController.chooseTabCM}" label="NHÂN VIÊN">
                                        <h:panelGroup id="reload6" style="float:left;width:100%;">
                                            <div style="width: 100% !important;">
                                                <div style="float:left;width:100%;">
                                                    <div style="float: left;border: 1px solid #666666;width: 7%;background-color: #506579;color: #fff;">
                                                        <h:outputText style="float:left;line-height:25px;margin-left:7%;font-size:10px" value="Thêm người"/>
                                                    </div>
                                                    <div style="float: left;border: 1px solid #666666;width: 2%;background-color: #506579;color: #fff;">
                                                        <h:outputLink style="float:left;" rendered="#{loginSession.right.COM_EMP_CRE}"    value="employeePersonalDD.jsp?action=addEmp&choisetab=3&flagform=3&page=#{CustomerBean.pagereload}&table=A&step=listEm&fn600=3&idk100=#{CustomerBean.fk100}&nn117=1&height=250px&width=400px" styleClass="fancybox">                                       
                                                            <h:outputText style="float:left;line-height:25px;margin-left:21%;font-size:25px;color:white;" value="+"/>
                                                        </h:outputLink>
                                                    </div>  
                                                    <h:outputLink style="color:#fff;float:right;margin-right:6px;"   value="popUpSendEmail.jsp?page=listEmployee&step=1&fk100reload=#{CustomerBean.fk100}&KeepThis=true&amp;TB_iframe=true&amp;height=653&amp;width=741&amp;modal=true" styleClass="thickbox add_new abc"  >
                                                        <img src="../images/icon_email1.png" alt="Email" title="Gửi email"/>
                                                    </h:outputLink>

                                                </div> 
                                                <div style="float:left;width:100%;"> 
                                                    <rich:dataTable value="#{CustomerBean.listdifn100C}" rowClasses="white,odditem" var="item" rowKeyVar="index">

                                                        <rich:column style="width:25px;">
                                                            <f:facet name="header">
                                                                <h:outputText value="#{locale.num1}" />
                                                            </f:facet>
                                                            <div style="width:25px; text-align: center">
                                                                <h:outputText value="#{index+1}" />
                                                            </div>
                                                        </rich:column>

                                                        <rich:column style="width:25px;">
                                                            <f:facet name="header">
                                                                <h:selectBooleanCheckbox styleClass="checkAll"/>
                                                            </f:facet>
                                                            <div style="width:25px; text-align: center" lang="<h:outputText value="#{item.fk100}"/> ">
                                                                <h:selectBooleanCheckbox styleClass="check_select" lang="#{item.pn100}"  />  

                                                            </div>
                                                        </rich:column>

                                                        <rich:column style="width:200px"  >
                                                            <f:facet name="header">
                                                                <h:outputText value="#{locale.frist_lastname}" />
                                                            </f:facet>

                                                            <div style="width:200px; text-align: left">
                                                                <a href='customer.jsp?action=linkCus&pnPN100=<h:outputText value="#{item.pn100}"/>&type=<h:outputText value="#{item.ni104}"/>'> <h:outputText value=" #{item.hoten}"  /></a>

                                                            </div>
                                                        </rich:column >
                                                        <rich:column style="width:100px"  >
                                                            <f:facet name="header">
                                                                <h:outputText value="Điện thoại" />
                                                            </f:facet>

                                                            <div style="width:100px; text-align: left" lang="<h:outputText value="#{CustomerBean.fk100}"/>">
                                                                <h:outputText style="color:#4884B5;cursor: pointer;" value="#{item.nv121}" styleClass="sendSMS_person" lang="page=sendSMSitemCompany1&group=1&hoten=#{item.hoten}&phone=#{item.nv121}&fn100=#{item.pn100}"/>

                                                                <%--  <h:outputText value="#{item.nv121}"  escape="false"/> --%>
                                                            </div>
                                                        </rich:column >
                                                        <rich:column style="width:150px"  >
                                                            <f:facet name="header">
                                                                <h:outputText value="Email" />
                                                            </f:facet>

                                                            <div style="width:150px; text-align: center">
                                                                <h:outputText value="#{item.nv120}"  escape="false"/>
                                                            </div>
                                                        </rich:column >
                                                        <rich:column   style="width:auto" >
                                                            <f:facet name="header">
                                                                <h:outputText value="#{locale.address}" />
                                                            </f:facet>

                                                            <div style="width:auto; text-align: left">
                                                                <h:outputText value="#{item.nv112}"  escape="false"/>
                                                            </div>
                                                        </rich:column >
                                                        <rich:column   style="width:auto" >
                                                            <f:facet name="header">
                                                                <h:outputText value="Cập nhật" />
                                                            </f:facet>
                                                            <div style="width:auto; text-align: left">
                                                                <h:outputText style="font-size:10px;" value="#{item.nl148}" />
                                                                <h:outputText style="font-size:10px;" value="#{item.nl149}" />
                                                            </div>
                                                        </rich:column >
                                                        <rich:column style="width:35px;">
                                                            <f:facet name="header">
                                                                <h:outputText value="Action" />
                                                            </f:facet>
                                                            <%--<h:outputLink  rendered="#{loginSession.right.COM_EMP_MOD}"    value="customerInputExpand.jsp?action=editEmp&choisetab=1&flagform=3&pn100=#{item.pn100}&page=#{CustomerBean.pagereload}&type=#{item.ni104}&table=A&step=listEm&fn600=3&ppk100=#{item.fk100}&nn117=1&height=300px&width=400px" styleClass="fancybox">
                                                                <img title="edit" alt="edit" src="../images/edit.png">
                                                            </h:outputLink> --%>

                                                            <h:outputLink   rendered="#{loginSession.right.COM_EMP_DEL}" value="delete.jsp?id=#{item.pn100}&pn100C=#{CustomerBean.fk100}&flag=convertEmpNV&tab=itemcontent&height=150px&width=300px" styleClass="fancybox">
                                                                <img src="../images/delete_1.png" alt="delete"  title="delete" />
                                                            </h:outputLink> 
                                                        </rich:column>

                                                    </rich:dataTable>
                                                </div>
                                            </div>
                                        </h:panelGroup>
                                    </rich:tab>
                                    <rich:tab name="TABLSCN" action="#{k100supplierController.chooseTabLSCN}" label="ĐẠI DIỆN">
                                        <h:panelGroup id="reload15" style="float:left;width:100%;">
                                            <div style="width: 100% !important;">
                                                <div style="float:left;width:100%;background-color: #4884B5;">
                                                    <div style="float: left;border: 1px solid #666666;width: 7%;background-color: #506579;color: #fff;">
                                                        <h:outputText style="float:left;line-height:25px;margin-left:7%;font-size:10px" value="Đại diện"/>
                                                    </div>
                                                    <div style="float: left;border: 1px solid #666666;width: 2%;background-color: #506579;color: #fff;">
                                                        <h:outputLink style="float:left;"   rendered="#{loginSession.right.COM_CPE_CRE}"  value="employeePersonalDD.jsp?action=addEmp&choisetab=3&flagform=3&nn117=0&table=A&step=persion&fn600=4&idk100=#{CustomerBean.fk100}&page=supplier.jsp&height=250px&width=400px" styleClass="fancybox">

                                                            <h:outputText style="float:left;line-height:25px;margin-left:21%;font-size:25px;color:white;" value="+"/>
                                                        </h:outputLink>


                                                    </div>  
                                                    <h:outputLink style="color:#fff;float:right;margin-right:6px;"   value="popUpSendEmail.jsp?page=listPersonal&step=2&fk100reload=#{CustomerBean.fk100}&KeepThis=true&amp;TB_iframe=true&amp;height=653&amp;width=741&amp;modal=true" styleClass="thickbox add_new abc" id="thickbox3"  >
                                                        <img src="../images/icon_email1.png" alt="Email" title="Gửi email"/>
                                                    </h:outputLink>

                                                </div> 
                                                <div style="float:left;width:100%;">
                                                    <rich:dataTable value="#{CustomerBean.listpersion}" var="item" rowClasses="white,odditem"
                                                                    rowKeyVar="index" >

                                                        <rich:column style="width:25px;">
                                                            <f:facet name="header">
                                                                <h:outputText value="#{locale.num1}" />
                                                            </f:facet>
                                                            <div style="width:25px; text-align: center">
                                                                <h:outputText value="#{index+1}" />

                                                            </div>
                                                        </rich:column>
                                                        <rich:column style="width:25px;">
                                                            <f:facet name="header">
                                                                <h:selectBooleanCheckbox styleClass="checkAllDD" />
                                                            </f:facet>
                                                            <div style="width:25px; text-align: center" lang="<h:outputText value="#{item.fk100}"/> ">
                                                                <h:selectBooleanCheckbox styleClass="check_selectDD" lang="#{item.pn100}"  />  

                                                            </div>
                                                        </rich:column>
                                                        <rich:column style="width:200px;" >
                                                            <f:facet name="header">
                                                                <h:outputText value="#{locale.frist_lastname}" />
                                                            </f:facet>

                                                            <div style="width:200px; text-align: left">
                                                                <a href='customer.jsp?action=linkCus&pnPN100=<h:outputText value="#{item.pn100}"/>&type=<h:outputText value="#{item.ni104}"/>'> <h:outputText value="#{item.hoten}"  /></a>

                                                            </div>
                                                        </rich:column >
                                                        <rich:column style="width:100px;" >
                                                            <f:facet name="header">
                                                                <h:outputText value="Điện thoại" />
                                                            </f:facet>

                                                            <div style="width:100px; text-align: left" lang="<h:outputText value="#{CustomerBean.fk100}"/>">
                                                                <%--     <h:outputText value="#{item.nv121}" /> --%>
                                                                <h:outputText  style="color:#4884B5;cursor: pointer;" value="#{item.nv121}" styleClass="sendSMS_person1" lang="page=sendSMSitemCompany&group=1&hoten=#{item.hoten}&phone=#{item.nv121}&fn100=#{item.pn100}"/>

                                                            </div>
                                                        </rich:column >
                                                        <rich:column style="width:150px"  >
                                                            <f:facet name="header">
                                                                <h:outputText value="Email" />
                                                            </f:facet>

                                                            <div style="width:150px; text-align: center">
                                                                <h:outputText value="#{item.nv120}"  escape="false"/>
                                                            </div>
                                                        </rich:column >
                                                        <rich:column   style="width:auto" >
                                                            <f:facet name="header">
                                                                <h:outputText value="#{locale.address}" />
                                                            </f:facet>

                                                            <div style="width:auto; text-align: left">
                                                                <h:outputText value="#{item.nv112}"  escape="false"/>
                                                            </div>
                                                        </rich:column >
                                                        <rich:column   style="width:auto" >
                                                            <f:facet name="header">
                                                                <h:outputText value="Cập nhật" />
                                                            </f:facet>

                                                            <div style="width:auto; text-align: left">

                                                                <h:outputText style="font-size:10px;" value="#{item.nl148}" />


                                                                <h:outputText style="font-size:10px;" value="#{item.nl149}" />
                                                            </div>
                                                        </rich:column >
                                                        <rich:column style="width:45px;" lang="#{CustomerBean.fk100}">
                                                            <f:facet name="header">
                                                                <h:outputText value="Action" />
                                                            </f:facet>
                                                            <%--    <h:outputLink   rendered="#{loginSession.right.COM_CPE_MOD}" value="customerInputExpand.jsp?action=editEmp&choisetab=0&flagform=3&nn117=0&pn100=#{item.pn100}&page=#{CustomerBean.pagereload}&table=A&step=persion&ppk100=#{item.fk100}&fn600=4&height=300px&width=400px" styleClass="fancybox">
                                                                    <img style="float: left;" title="edit" alt="edit" src="../images/edit.png">
                                                                </h:outputLink> --%>
                                                            <h:outputLink   rendered="#{loginSession.right.COM_CPE_DEL}" value="delete.jsp?id=#{item.pn100}&pn100C=#{CustomerBean.fk100}&flag=convertEmp&height=150px&width=300px" styleClass="fancybox">
                                                                <img src="../images/delete_1.png" alt="delete"  title="delete" />
                                                            </h:outputLink> 
                                                            <%--   <h:panelGroup rendered="#{loginSession.right.COM_CPE_DEL}">
                                                                  <div class="deleteDD" lang="<h:outputText value="#{item.pn100}"/>"><img src="../images/delete_1.png" alt="delete"  title="delete" /></div>
                                                              </h:panelGroup> --%>
                                                        </rich:column>
                                                    </rich:dataTable>
                                                </div> 

                                            </div>
                                        </h:panelGroup>
                                    </rich:tab>
                                    <rich:tab name="TABTL" action="#{k100supplierController.chooseTabTL}" label="TÀI LIỆU">
                                        <h:panelGroup id="reload10" style="float:left;width:100%;">
                                            <div style="width: 100% !important;">
                                                <div style="float:left;width:100%;">
                                                    <div style="float: left;border: 1px solid #666666;width: 9%;background-color: #506579;color: #fff;">
                                                        <h:outputText style="float:left;line-height:25px;margin-left:7%;font-size:10px" value="#{locale.attach_document}"/>
                                                    </div>
                                                    <div style="float: left;border: 1px solid #666666;width: 2%;background-color: #506579;color: #fff;">

                                                        <h:outputLink 
                                                            value="uploadfile.jsp?pn100=#{documentController.pn100}&pm650=none&tab=itemcontent&page=supplier.jsp&type=ALL&table=K100&KeepThis=true&amp;TB_iframe=true&amp;height=350&amp;width=550&amp;modal=true" styleClass="thickbox" id="thickbox2"  >
                                                            <h:outputText style="float:left;line-height:25px;margin-left:21%;font-size:25px;color:white;" value="+"/>
                                                        </h:outputLink>
                                                    </div>  
                                                </div> 
                                                <div style="float:left;width:100%;">
                                                    <rich:dataTable value="#{documentController.listdocumentCus}" var="item" rowClasses="white,odditem"
                                                                    rows="50" style="width:100%" rowKeyVar="index" >

                                                        <rich:column style="width:25px;">
                                                            <f:facet name="header">
                                                                <h:outputText value="STT" />
                                                            </f:facet>
                                                            <div style="width:25px; text-align: center">
                                                                <h:outputText value="#{index+1}" />

                                                            </div>
                                                        </rich:column>
                                                        <rich:column style="width:280px;">
                                                            <f:facet name="header">
                                                                <h:outputText value="#{locale.file_name}" />
                                                            </f:facet>
                                                            <div style="width:280px; text-align: left">
                                                                <h:outputLink     value="#{item.download}"  target="_Bank" >
                                                                    <h:outputText value="#{item.mv652}" />
                                                                </h:outputLink>

                                                            </div>
                                                        </rich:column>

                                                        <rich:column >
                                                            <f:facet name="header">
                                                                <h:outputText value="#{locale.description}" />
                                                            </f:facet>

                                                            <div style="width:auto; text-align: left">
                                                                <h:outputText value="#{item.mv651}" />
                                                            </div>
                                                        </rich:column>


                                                        <rich:column  width="160px">
                                                            <f:facet name="header">
                                                                <h:outputText value="#{locale.date_update}" />
                                                            </f:facet>

                                                            <div style="width:160px; text-align: center">
                                                                <h:outputText value="#{item.ml668}"><f:convertDateTime pattern="dd/MM/yyyy"/></h:outputText>
                                                                </div>
                                                        </rich:column>
                                                        <rich:column  width="160px">
                                                            <f:facet name="header">
                                                                <h:outputText value="#{locale.person_update}" />
                                                            </f:facet>

                                                            <div style="width:160px; text-align: center">
                                                                <h:outputText value="#{item.ml669}" />
                                                            </div>
                                                        </rich:column >
                                                        <rich:column style="width:25px;">
                                                            <f:facet name="header">
                                                                <h:outputText value="Action" />
                                                            </f:facet>
                                                            <div style="width:25px; text-align: center">
                                                                <h:outputLink   value="delete.jsp?id=#{item.pm650}&pn100C=#{documentController.pn100}&tab=itemcontent&page=supplier.jsp&flag=M650&height=150px&width=300px" styleClass="fancybox">
                                                                    <img src="../images/delete_1.png" alt="delete"  title="delete" />
                                                                </h:outputLink>

                                                            </div>
                                                        </rich:column>
                                                    </rich:dataTable>

                                                </div>
                                            </div>
                                        </h:panelGroup>
                                    </rich:tab>

                                    <rich:tab name="TABTK" action="#{k100supplierController.chooseTabTK}" label="THÔNG TIN TÀI KHOẢN">
                                        <h:panelGroup id="reload5" style="float:left;width:100%;">
                                            <div style="width: 100% !important;">
                                                <div style="float:left;width:100%;background-color: #4884B5;">
                                                    <div style="float: left;border: 1px solid #666666;width: 7%;background-color: #506579;color: #fff;">
                                                        <h:outputText style="float:left;line-height:25px;margin-left:7%;font-size:10px" value="#{locale.account}"/>
                                                    </div>
                                                    <div style="float: left;border: 1px solid #666666;width: 2%;background-color: #506579;color: #fff;">
                                                        <h:outputLink   value="editAccount.jsp?action=add&id=#{t025Controller.REFID}&tab=itemcontent&page=supplier.jsp&itemid=K100&height=300px&width=500px" styleClass="fancybox">
                                                            <h:outputText style="float:left;line-height:25px;margin-left:21%;font-size:25px;color:white;" value="+"/>
                                                        </h:outputLink>


                                                    </div>  
                                                </div> 
                                                <div style="float:left;width:100%;">
                                                    <rich:dataTable value="#{t025Controller.listoftabT025Cus}" var="item"
                                                                    rows="50" rowClasses="white,odditem"
                                                                    style="width:100%" rowKeyVar="index">

                                                        <rich:column style="width:25px;">
                                                            <f:facet name="header">
                                                                <h:outputText value="#{locale.num}" />
                                                            </f:facet>
                                                            <div style="width:25px; text-align: center">
                                                                <h:outputText value="#{index+1}" />

                                                            </div>
                                                        </rich:column>
                                                        <rich:column style="width:180px;">
                                                            <f:facet name="header">
                                                                <h:outputText value="#{locale.account_num}" />
                                                            </f:facet>
                                                            <div style="width:180px; text-align: center">

                                                                <h:outputText value="#{item.TV027}" />

                                                            </div>
                                                        </rich:column>

                                                        <rich:column width="180px" >
                                                            <f:facet name="header">
                                                                <h:outputText value="#{locate.currency}" />
                                                            </f:facet>

                                                            <div style="width:180px; text-align: center">
                                                                <h:outputText value="#{item.TV028}" />
                                                            </div>
                                                        </rich:column>


                                                        <rich:column  width="180px">
                                                            <f:facet name="header">
                                                                <h:outputText value="#{locale.bank}" />
                                                            </f:facet>

                                                            <div style="width:180px; text-align: center">
                                                                <h:outputText value="#{item.TV029}"><f:convertDateTime pattern="dd/MM/yyyy"/></h:outputText>
                                                                </div>
                                                        </rich:column>
                                                        <rich:column  >
                                                            <f:facet name="header">
                                                                <h:outputText value="#{locale.address}" />
                                                            </f:facet>

                                                            <div style="width:auto; text-align: center">
                                                                <h:outputText value="#{item.TV030}" />
                                                            </div>
                                                        </rich:column >
                                                        <rich:column style="width:35px;">
                                                            <f:facet name="header">
                                                                <h:outputText value="" />
                                                            </f:facet>
                                                            <div style="width:35px; text-align: center">
                                                                <div class="row6">
                                                                    <h:outputLink  value="editAccount.jsp?action=edit&id=#{item.REFID}&pt025=#{item.PT025}&itemid=K100&tab=itemcontent&page=supplier.jsp&height=300px&width=500px" styleClass="fancybox">
                                                                        <img src="../images/edit.png" alt="edit" title="edit"/>
                                                                    </h:outputLink>
                                                                    <h:outputLink   value="delete.jsp?id=#{item.REFID}&pn100C=#{item.PT025}&table1=K100&flag=T025&tab=itemcontent&page=supplier.jsp&height=150px&width=300px" styleClass="fancybox">
                                                                        <img src="../images/delete_1.png" alt="delete"  title="delete" />
                                                                    </h:outputLink>
                                                                </div>
                                                            </div>
                                                        </rich:column>
                                                    </rich:dataTable>
                                                </div> 

                                            </div>
                                        </h:panelGroup>
                                    </rich:tab>
                                    <rich:tab name="TABLSKH" action="#{k100supplierController.chooseTabLSKH}" label="LỊCH SỬ KHÁCH HÀNG">
                                        <h:panelGroup id="reload13" style="float:left;width:100%;">
                                            <%--  <div style="width: 100% !important;">
                                                  <div style="float:left;width:100%;background-color: #4884B5;">
                                                      <div style="float: left;border: 1px solid #666666;width: 7%;background-color: #506579;color: #fff;">
                                                          <h:outputText style="float:left;line-height:25px;margin-left:7%;font-size:10px" value="#{locale.account}"/>
                                                      </div>
                                                      <div style="float: left;border: 1px solid #666666;width: 2%;background-color: #506579;color: #fff;">
                                                          <h:outputLink   value="editAccount.jsp?action=add&id=#{t025Controller.REFID}&tab=itemcontent&page=supplier.jsp&itemid=N100&height=300px&width=500px" styleClass="fancybox">
                                                              <h:outputText style="float:left;line-height:25px;margin-left:21%;font-size:25px;color:white;" value="+"/>
                                                          </h:outputLink>


                                                    </div>  
                                                </div> --%>
                                            <div style="float:left;width:100%;">
                                                <rich:dataTable value="#{B630Bean.listhistoryCustomer}" var="item"
                                                                rows="50" rowClasses="white,odditem"
                                                                style="width:100%" rowKeyVar="index">

                                                    <rich:column style="width:25px;">
                                                        <f:facet name="header">
                                                            <h:outputText value="#{locale.num}" />
                                                        </f:facet>
                                                        <div style="width:25px; text-align: center">
                                                            <h:outputText value="#{index+1}" />

                                                        </div>
                                                    </rich:column>
                                                    <rich:column style="width:180px;">
                                                        <f:facet name="header">
                                                            <h:outputText value="Hoàn thành" />
                                                        </f:facet>
                                                        <div style="width:180px; text-align: center">

                                                            <h:panelGroup rendered="#{loginSession.right.CMA_LST_CHE}">
                                                                <h:selectBooleanCheckbox rendered="#{item.bv638=='A'}" value="#{B630Bean.checkComplete}" lang="#{item.pb630},#{item.fq100}"  styleClass="checkComplete" style="float:left;margin-left:10px"/>
                                                            </h:panelGroup>

                                                        </div>
                                                    </rich:column>

                                                    <rich:column width="180px" >
                                                        <f:facet name="header">
                                                            <h:outputText value="Tiêu đề" />
                                                        </f:facet>

                                                        <div style="width:180px; text-align: center">
                                                            <h:outputLink value="workChargeCM.jsp?page=supplier.jsp">
                                                                <h:outputText value="#{item.bv631}"  escape="false"/>
                                                            </h:outputLink>
                                                        </div>
                                                    </rich:column>


                                                    <rich:column  width="180px">
                                                        <f:facet name="header">
                                                            <h:outputText value="Hạn mục" />
                                                        </f:facet>

                                                        <div style="width:180px; text-align: left;">
                                                            <h:outputText value="#{item.bv671}"  escape="false"/>
                                                        </div>
                                                    </rich:column>
                                                    <rich:column  >
                                                        <f:facet name="header">
                                                            <h:outputText value="Họ tên" />
                                                        </f:facet>

                                                        <div style="width:auto; text-align: center">
                                                            <a href='supplier.jsp?pnPN100=<h:outputText value="#{item.fq100}"/>&type=<h:outputText value="#{item.nn104}"/>'>  <h:outputText value="#{item.hoten}"></h:outputText></a>
                                                            </div>
                                                    </rich:column >
                                                    <rich:column  >
                                                        <f:facet name="header">
                                                            <h:outputText value="Mobi" />
                                                        </f:facet>

                                                        <div style="width:auto; text-align: center">
                                                            <a href="sendSMS.jsp?action=sendSMS&hoten=<h:outputText value="#{item.hoten}" />&pn100=<h:outputText value="#{item.fq100}" />&phone=<h:outputText value="#{item.nv108}" />" class="fancybox actionsendsms"> <h:outputText value="#{item.nv108}" styleClass="phone" lang="#{item.nv108}"/> </h2> <h:outputText rendered="#{item.nv108=='' ||  item.nv108== null}" value="<br/>" escape="false"/></a></h2>
                                                        </div>
                                                    </rich:column >
                                                    <rich:column  >
                                                        <f:facet name="header">
                                                            <h:outputText value="Email" />
                                                        </f:facet>

                                                        <div style="width:auto; text-align: center">
                                                            <h:outputLink value="popupSendMailPerson.jsp?page=workChargeCM&idx=#{item.fq100}&mailx=#{item.nv105}&typex=workChargeCM&KeepThis=true&amp;TB_iframe=true&amp;height=653&amp;width=741&amp;modal=true" styleClass="thickbox add_new"  ><h:outputText value="#{item.nv105}" /></h:outputLink>
                                                            </div>
                                                    </rich:column >
                                                    <rich:column style="width:20%;">
                                                        <f:facet name="header">
                                                            <h:outputText value="" />
                                                        </f:facet>
                                                        <div style="width:100%; text-align: center">

                                                            <h:outputLink  rendered="#{loginSession.right.CMA_LST_MOD}"  value="workChargeInput.jsp?action=edit&tab=itemcontent&page=supplier.jsp&pb630=#{item.pb630}&fq100=#{B630Bean.fq100}&height=300px&width=500px" styleClass="fancybox">
                                                                <img src="../images/edit.png" alt="edit" title="edit"/>
                                                            </h:outputLink>
                                                            <h:outputLink  rendered="#{loginSession.right.CMA_LST_DEL}"  value="deleteB630.jsp?action=delete&tab=itemcontent&page=supplier.jsp&fq100=#{item.fq100}&itemid=#{item.fk100}&fb670=#{item.fb670}&pb630=#{item.pb630}&height=150px&width=300px" styleClass="fancybox">
                                                                <img src="../images/delete_1.png" alt="delete"  title="delete" />
                                                            </h:outputLink>
                                                      <%--      <h:outputLink rendered="#{loginSession.right.CMA_LST_DES}" value="noteWorkChargeInput.jsp?action=addNote&tab=itemcontent&page=supplier.jsp&pb630=#{item.pb630}&title=#{item.bv631} - #{item.hoten}&fn100CN=#{item.fq100}&height=300px&width=500px" styleClass="fancybox" style="margin-left:3px;">
                                                                <img  alt="Thêm ghi chú" src="../images/qb_email_add.png" width="15px" height="15px">
                                                            </h:outputLink>

                                                            <h:graphicImage rendered="#{loginSession.right.CMA_LST_VDE}" value="../images/history.png" height="15px" width="15px" alt="Ghi chú" title="Ghi chú" styleClass="showNote" lang="#{item.pb630}">                                                            
                                                            </h:graphicImage> --%>

                                                        </div>
                                                    </rich:column>
                                                </rich:dataTable>
                                            </div> 

                                        </div>
                                    </h:panelGroup>
                                </rich:tab>
                                <rich:tab name="TABLST" action="#{k100supplierController.chooseTabLST}" label="LỊCH SỬ TOUR">
                                    <h:panelGroup id="reload14" style="float:left;width:100%;">
                                        <div style="width: 100% !important;">

                                            <div style="float:left;width:100%;">
                                                <rich:dataTable  value="#{v050Controller.listAllV050CT}" rowKeyVar="row" var="item" columnClasses="col1"
                                                                 rows="17" reRender="ds"
                                                                 rowClasses="blue, white"
                                                                 id="abcxyz">
                                                    <rich:column> 
                                                        <f:facet name="header">
                                                            <h:outputText value="STT"/>
                                                        </f:facet>
                                                        <div style="width: 20px;text-align: center">
                                                            <h:outputText value="#{row+1}"/>
                                                        </div>

                                                    </rich:column>   
                                                    <rich:column> 
                                                        <f:facet name="header">
                                                            <h:outputText value="Mã tour" styleClass="col1" />
                                                        </f:facet>
                                                        <div style="width: 100px;">
                                                            <h:outputLink value="listTour.jsp?action=linkrecord&fv050=#{item.pv050}&tabel=T">
                                                                <h:outputText value="#{item.vv051}"/>
                                                            </h:outputLink>
                                                        </div>

                                                    </rich:column>                                 
                                                    <rich:column>
                                                        <f:facet name="header">
                                                            <h:outputText value="Tên tour"/>
                                                        </f:facet>
                                                        <div style="width: 200px;">
                                                            <h:outputText value="#{item.vv052}"/>
                                                        </div>

                                                    </rich:column> 
                                                    <rich:column>
                                                        <f:facet name="header">
                                                            <h:outputText value="Điểm khởi hành"/>
                                                        </f:facet>
                                                        <div style="width: 100px;">
                                                            <h:outputText value="#{item.vv069}"/>
                                                        </div>

                                                    </rich:column> 
                                                    <rich:column>
                                                        <f:facet name="header">
                                                            <h:outputText value="Điểm đến"/>
                                                        </f:facet>
                                                        <div style="width: 100px;">
                                                            <h:outputText value="#{item.vv070}"/>
                                                        </div>

                                                    </rich:column> 
                                                    <rich:column>
                                                        <f:facet name="header">
                                                            <h:outputText value="Mô tả"/>
                                                        </f:facet>
                                                        <div style="width: 170px;">
                                                            <h:outputText value="#{item.vv070}"/>
                                                        </div>

                                                    </rich:column> 
                                                    <rich:column>
                                                        <f:facet name="header">
                                                            <h:outputText value="Ngày cập nhật"/>
                                                        </f:facet>
                                                        <div style="width: 160px; text-align: center">
                                                            <h:outputText value="#{item.vl098}"><f:convertDateTime pattern="dd/MM/yyyy HH:mm:ss" /></h:outputText><br>
                                                            (<h:outputText value="#{item.vl099}" ></h:outputText>)
                                                            </div>

                                                    </rich:column> 


                                                    <%--<rich:column >
                                                        <f:facet name="header">
                                                            <h:outputText value="Sửa"/>
                                                        </f:facet>
                                                        <div style="width:60px; text-align: center">
                                                            
                                                            <h:outputLink rendered="#{loginSession.right.SLE_LST_MOD}" value="" >
                                                                <img src="../images/edit.png" alt="edit" title="Sửa"/>
                                                            </h:outputLink>
                                                            <h:outputLink rendered="#{loginSession.right.SLE_LST_DEL}" value="" >
                                                                <img src="../images/delete_1.png" alt="delete"  title="Xóa" />
                                                            </h:outputLink>

                                                    </div>
                                                </rich:column> --%>
                                                </rich:dataTable>
                                            </div> 

                                        </div>
                                    </h:panelGroup>
                                </rich:tab>
                                <rich:tab name="TABDV" action="#{k100supplierController.chooseTabdv}" label="DỊCH VỤ">
                                    <h:panelGroup id="reload146" style="float:left;width:100%;">
                                        <div style="width: 100% !important;">
                                               <div style="width: 100% !important;">
                                                  <div style="float:left;width:100%;background-color: #4884B5;">
                                                      
                                                    
                                                      <div style="float: left;border: 1px solid #666666;width: 7%;background-color: #506579;color: #fff;">
                                                          <h:outputText style="float:left;line-height:25px;margin-left:7%;font-size:10px" value="Dịch vụ"/>
                                                      </div>
                                                      <div style="float: left;border: 1px solid #666666;width: 2%;background-color: #506579;color: #fff;">
                                                          <h:outputLink  value="editserviceDetail.jsp?action=add&id=#{v300Controller.fk100}&page=#{serviceController.pagereload}&itemid=N100&height=300px&width=500px" styleClass="fancybox">
                                                              <h:outputText style="float:left;line-height:25px;margin-left:21%;font-size:25px;color:white;" value="+"/>
                                                          </h:outputLink>


                                                    </div>  
                                                </div>
                                            <div style="float:left;width:100%;">
                                                <rich:dataTable  reRender="sc2" value="#{v300Controller.listV300All}" var="item"                            
                                                                  rowClasses="blue, white" rowKeyVar="row">
                                                    <rich:column style="width:20px;">
                                                        <f:facet name="header">
                                                            <h:outputText value="STT" />
                                                        </f:facet>

                                                        <div style="width:20px;text-align: center">
                                                            <h:outputText value="#{row+1}" />    
                                                        </div>
                                                    </rich:column>
                                                    <rich:column style="width:200px;">
                                                        <f:facet name="header">
                                                            <h:outputText value="Tên dịch vụ" />
                                                        </f:facet>

                                                        <div style="width:200px;">
                                                            <h:outputText value="#{item.vv301} " />    
                                                        </div>
                                                    </rich:column>
                                                    <rich:column style="width:100px;">
                                                        <f:facet name="header">
                                                            <h:outputText  value="Loại dịch vụ" />
                                                        </f:facet>
                                                        <div style="">
                                                            <h:outputText value="#{item.vv201}" />    
                                                        </div>
                                                    </rich:column>
                                                    <rich:column style="width:65px;">
                                                        <f:facet name="header">
                                                            <h:outputText  value="Giá dịch vụ" />
                                                        </f:facet>
                                                        <div style="width:65px;text-align: right;">
                                                            <h:outputText   value="#{item.vn302Str}" />

                                                        </div>
                                                    </rich:column>
                                                    <rich:column style="width:32px;">
                                                        <f:facet name="header">
                                                            <h:outputText  value="Tiền tệ" />
                                                        </f:facet>
                                                        <div style="width:32px;text-align: center;">
                                                            <h:panelGroup rendered="#{item.vv303==1}">  <h:outputText   value="VNĐ" /></h:panelGroup>
                                                            <h:panelGroup rendered="#{item.vv303==2}">  <h:outputText   value="USD" /></h:panelGroup>
                                                            <h:panelGroup rendered="#{item.vv303==3}">  <h:outputText   value="EUR" /></h:panelGroup>

                                                            </div>
                                                    </rich:column>
                                                    <rich:column style="width:150px;">
                                                        <f:facet name="header">
                                                            <h:outputText value="Ghi chú" />
                                                        </f:facet>
                                                        <div style="width:150px;text-align: left;">
                                                            <h:outputText   value="#{item.vv304}" />

                                                        </div>
                                                    </rich:column>


                                                    <rich:column style="width:150px;">
                                                        <f:facet name="header">
                                                            <h:outputText  value="Diễn giải" />
                                                        </f:facet>
                                                        <div style="width:150px;text-align: left;">
                                                            <h:outputText   value="#{item.vv305}" />

                                                        </div>
                                                    </rich:column>

                                                    <rich:column style="width:60px;text-align:center;">
                                                        <f:facet name="header">
                                                            <h:outputText styleClass="tnn" value="Action" />
                                                        </f:facet>
                                                        <div style="width:60px;">
                                                            <div style="width:20px;float: left;">
                                                                <h:outputLink rendered="#{loginSession.right.SLE_LST_ADD}" value="CountryandCity.jsp?action=countrycity&fv200=#{item.fv200}&fk100=#{item.fk100}&price=#{item.vn302}&vv301=#{item.vv301}&vv304=#{item.vv304}&vv305=#{item.vv305}&height=5px&width=600px" styleClass="fancybox add_new" id="fancybox1">
                                                                    <img src="../images/work.png" alt="Add work" title="Thêm quốc gia"/>
                                                                </h:outputLink>
                                                            </div>
                                                            <div style="width:20px;float: left;">
                                                                <h:outputLink rendered="#{loginSession.right.SUP_SEV_MOD}"  value="editserviceDetail.jsp?action=edit&fk100=#{item.fk100}&pv300=#{item.pv300}&page=#{serviceController.pagereload}&height=282px&width=345px" styleClass="fancybox add_new" id="fancybox3">
                                                                    <img src="../images/edit.png" alt="edit" title="edit"/>
                                                                </h:outputLink>

                                                            </div>


                                                            <div style="width:20px; float: right;">
                                                                <h:outputLink rendered="#{loginSession.right.SUP_SEV_DEL}" value="delete.jsp?action=delete&id=#{item.pv300}&pn100C=#{item.fk100}&flag=V300&height=282px&width=345px" styleClass="fancybox add_new" id="fancybox4">
                                                                    <img src="../images/delete_1.png" alt="delete"  title="delete" />
                                                                </h:outputLink>

                                                            </div>
                                                        </div>
                                                    </rich:column>

                                                </rich:dataTable> 
                                            </div> 

                                        </div>
                                    </h:panelGroup>
                                </rich:tab>


                            </rich:tabPanel>

                        </div>
                    </div>
                    <rich:modalPanel id="ajaxLoadingModalBox" minHeight="30" minWidth="40"
                                     height="30" width="40" zindex="2000">
                        <h:outputText value="#{locale.please_wait}" styleClass="startDummer"></h:outputText>
                    </rich:modalPanel>
                    <rich:modalPanel styleClass="pleaseimage" id="statPane" autosized="true" minHeight="10" minWidth="80"
                                     height="10" width="80" zindex="2000">
                        <h:graphicImage value="/images/loadingAnimation.gif" alt="ai" />
                    </rich:modalPanel>
                    <rich:modalPanel id="confirmPane" autosized="true">
                        <div class="popup1" style="height:150px; width:350px">
                            <div class="popup-header">
                                <div class="title"><h:outputText value="Thông báo"/></div>
                            </div>
                            <div class="popup-content">
                                <div class="main_content" style="padding:20px 84px">                                     
                                    <font style="font-weight:bold;margin-left: 6px;">
                                    <h:outputText value="Are you sure?"/>
                                    </font>                                   
                                </div>
                            </div>
                            <div class="popup-footer">
                                <h:inputHidden value="#{v030Controller.FV050}"/>
                                <a4j:commandButton styleClass="buttonsave" value="Cancel" onclick="#{rich:component('confirmPane')}.hide(); return false;" />
                                <a4j:commandButton styleClass="buttonsave" value="Delete" reRender="reload3,messageSystem" oncomplete="#{rich:component('confirmPane')}.hide();" actionListener="#{v030Controller.deleteV030}"/>                             
                            </div>
                        </div>
                    </rich:modalPanel>

                </div>
            </div>
        </a4j:form>
    </body>
</html>

</f:subview>
